package es.xpt.ysf.utils;

import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import org.apache.myfaces.shared_tomahawk.util.serial.SerialFactory;
import org.jboss.serial.io.JBossObjectOutputStream;

public class JbossSerialFactory implements SerialFactory {

        public ObjectOutputStream getObjectOutputStream(OutputStream stream)throws IOException {
                return new JBossObjectOutputStream(stream);
        }

        public ObjectInputStream getObjectInputStream(InputStream stream)throws IOException {
                return new MyFacesJBossObjectInputStream(stream);
        }

}

